package com.hanliy.Entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author hanyulin
 * @apiNote
 * @date 221/12/21 9:39
 */
@Data
public class AdminEntity {

    @NotNull(message = "AdminId不能为空")
    @ApiModelProperty(value = "AdminId")
    private Long id;

    @NotNull(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名")
    private String name;

    @NotNull(message = "年龄不能为空")
    @ApiModelProperty(value = "年龄")
    private Integer age;
}
